package com.yangxc.core.log.utils;

import com.yangxc.core.common.utils.RequestHolder;
import com.yangxc.core.log.api.LogDto;
import com.yangxc.core.log.enums.LogTypeEnum;
import lombok.experimental.UtilityClass;

import javax.servlet.http.HttpServletRequest;
import java.time.LocalDateTime;

/**
 * @author yangxc
 * @version 1.0.0
 * @ClassName LogUtil.java
 * @Description TODO
 * @createTime 2021年06月24日 15:40:00
 */
@UtilityClass
public class LogUtil {

    public LogDto getLogDto(){
        LogDto logDto = LogDto.builder().createTime(LocalDateTime.now())
                .type(LogTypeEnum.NORMAL.getType()).build();
        return logDto;
    }
}
